#ifndef _TOUCH_H_
#define	_TOUCH_H_

#include "mytype.h"
#include "stdint.h"

#ifdef   _TOUCH_MODULE_
#define  TOUCH_EXT
#else
#define  TOUCH_EXT  extern
#endif      

#define TIS_BUFF_SIZE           16
#define TIS_VAL_MIN             10
#define TIS_VAL_MAX             1000

    void TouchInit(void);
    void TouchCheck(void);
	
  	TOUCH_EXT uint16_t TisVal[TIS_BUFF_SIZE];
	TOUCH_EXT uint16_t TisIndex;
    
	TOUCH_EXT uint16_t TisOffset;
    TOUCH_EXT uint16_t TisKeyVal;
    TOUCH_EXT uint16_t TisKeyValLast;
    
    TOUCH_EXT uint16_t TisKeyCnt;
    
#undef TOUCH_EXT

#endif	/* _TOUCH_H_ */

